﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace MaximPortal.Model
{
    public class AddMottoModel
    {
        public List<AddMotto> list { get; set; }
    }

    public class AddMotto
    {
        [Required]
        [Display(Name = "名言内容")]
        [StringLength(300, ErrorMessage = "{0}必须至少包含 {2} 个字符", MinimumLength = 2)]
        public string motto_content { get; set; }

        [Required]
        [Display(Name = "名言作者")]
        [StringLength(30, ErrorMessage = "{0}必须至少包含 {2} 个字符", MinimumLength = 1)]
        public string auth_name { get; set; }
    }
}
